package com.gtw.modules.dao;

import com.gtw.modules.entity.TbRaidDividendDetails;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbRaidDividendDetailsDao {

    int deleteByPrimaryKey(Integer id);

    int insert(TbRaidDividendDetails record);

    int insertSelective(TbRaidDividendDetails record);

    TbRaidDividendDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbRaidDividendDetails record);

    int updateByPrimaryKey(TbRaidDividendDetails record);

    /**
     * 根据受益人ID查询
     */
    List<TbRaidDividendDetails> queryBybenefit(Integer benefitUserid);

    /**
     * 根据触发人ID查询
     */
    List<TbRaidDividendDetails> queryBytrigger(Integer triggerUserid);
}